package com.saxon.system.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author saxon
 * @since 2021-02-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysUser对象", description="")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "表id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "管理员账户")
    private String userId;

    @ApiModelProperty(value = "管理员名字")
    private String name;

    @ApiModelProperty(value = "管理员密码")
    private String password;

    @ApiModelProperty(value = "管理员电话")
    private String phone;

    @ApiModelProperty(value = "管理员权限")
    private String privilege;

    @ApiModelProperty(value = "账户是否可以使用")
    private Integer active;

    @ApiModelProperty(value = "最近一次登录的时间")
    private Date lastLogin;

    @ApiModelProperty(value = "管理员信息创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "管理员最近一次的修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date modifyTime;

    @ApiModelProperty(value = "修改数据")
    @Version
    private Integer version;

    @ApiModelProperty(value = "是否被删除")
    @TableLogic
    private Integer deleted;


}
